package cn.coco.jf.fw.admin.config.consts;

import com.jfinal.kit.Prop;
import com.jfinal.kit.PropKit;

public class SysConfigConst {
    public static Prop sysConfig = PropKit.use("sysConfig.properties");
    
    public static String DB_URL = sysConfig.get("db.url");
    public static String DB_USERNAME = sysConfig.get("db.username");
    public static String DB_PASSWD = sysConfig.get("db.passwd");
    public static String DB_DRIVER = sysConfig.get("db.driver", "com.mysql.jdbc.Driver");
    
    public static boolean CONFIG_DEV_MODE = sysConfig.getBoolean("config_dev_mode", true);
    public static String CONFIG_BASE_UPLOAD_PATH = sysConfig.get("config_base_upload_path", "upload");
    
    public static int DB_INITIALSIZE = sysConfig.getInt("db.initialSize", 2);
    public static int DB_MINIDLE = sysConfig.getInt("db.minIdle",1);
    public static int DB_MAXACTIVE = sysConfig.getInt("db.maxActive", 5);

    public static String SYSTEM_USER_CODE = sysConfig.get("system.user.code", "systemadmin");
    
    
    public static boolean SYSTEM_SSO_ABLE = sysConfig.getBoolean("system.sso.able", false);
    public static String SYSTEM_SSO_APPID = sysConfig.get("system.sso.appId");
    public static String SYSTEM_SSO_APPKEY = sysConfig.get("system.sso.appKey");
    public static String SYSTEM_SSO_URL_LOGIN = sysConfig.get("system.sso.url.login");
    public static String SYSTEM_SSO_URL_AUTHINFO = sysConfig.get("system.sso.url.authInfo");
    public static String SYSTEM_SSO_AUTHTYPE = sysConfig.get("system.sso.authType");
    
    
    public static Integer SYSTEM_USER_ROLEID_DEFAULT = sysConfig.getInt("system.user.roleId.default", -1);
}
